package com.arcanite.dailyplanner.view.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.arcanite.dailyplanner.view.fragment.ContentFragment;

import java.util.List;

/**
 * 类或接口的描述信息
 * Created by ${USER} on ${DATE}.
 */

public class ContentPageAdapter extends FragmentPagerAdapter {
    // Fragment列表
    private List<ContentFragment> mListFragment;

    public ContentPageAdapter(FragmentManager fm, List<ContentFragment> mListFragment) {
        super(fm);
        this.mListFragment = mListFragment;
    }

    @Override
    public Fragment getItem(int position) {
        return mListFragment.get(position);
    }

    @Override
    public int getCount() {
        return mListFragment.size();
    }
}
